/**
 * 
 */
package exceptions;

import data.ReturnValue;

/**
 * This class is part of the interface between the GUI and the SAP.
 * <p>
 * When thrown it indicates that an error in SAP BAPI occurred.
 * 
 * @author sebastian
 *
 */
public class ReturnException extends RuntimeException {
	private static final long serialVersionUID = 6161083825790518253L;
	
	private final ReturnValue r;
	
	public ReturnException (ReturnValue r) {
		super(r.message);
		
		this.r = r;
	}
}
